from tkinter import *

c = [[0, 0], [10, 0], [10, 10], [20, 10], [20, 0], [30, 0], [30, 20], [0, 20]]
root = Tk()
root.title('it-марафон')
root.geometry('500x500')

cn = Canvas(bg='#B4DC8E', width=500, height=500)
cn.pack(anchor=CENTER, expand=1)

x = int(input())
y = int(input())
n = int(input())

mx = 0
my = 0

for i in c:
    i[0] = i[0] * n + x
    mx = max(i[0], mx)
    i[1] = i[1] * n + y
    my = max(i[1], my)
    
if mx <= 500 and my <= 500:
    cn.create_polygon(c, fill='#437737', outline='#263422', width=1.5)
else:
    print('Размер фигуры превышает размер поля')
    
root.mainloop()